package com.example.demo.pojo.Accounts;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@Table(name = "transfer_record")
@Data
public class TransferRecord {
    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;

    @Column(name = "sequence_number")
    private Integer sequenceNumber; // 序号（转账用户id）

    @Column(name = "transfer_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date transferTime; // 转账时间

    @Column(name = "outgoing_account_id")
    private Integer outgoingAccountId; // 转出账户ID

    @Column(name = "outgoing_amount")
    private BigDecimal outgoingAmount; // 转出金额

    @Column(name = "exchange_rate")
    private BigDecimal exchangeRate; // 汇率

    @Column(name = "incoming_account_id")
    private Integer incomingAccountId; // 转入账户ID

    @Column(name = "incoming_amount")
    private BigDecimal incomingAmount; // 转入金额


}
